package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.ExamView
import tmproject.hlhj.fhp.cartrans.javaBean.ExamListBean
import tmproject.hlhj.fhp.cartrans.modules.ExamModule

/**
 * Created by Never Fear   on 2018\8\28 0028.
Never More....
 */
class ExamPresenter:BasePresenter<ExamModule,ExamView>(), ExamModule.OnExamListener {
    override fun gotExams(examListBean: ExamListBean) {
        view?.setExamList(examListBean)
    }
    fun getExams(c:Context,token:String?,page:Int,pageSize:Int){
        module.getExams(c,token, page, pageSize)
    }

    override fun noMore() {
        view?.noMore()
    }

    override fun createModule() {
        module= ExamModule()
        module.listener=this
    }
}